<?php

foreach (Config::$modules as $modul) {

    if($dir = opendir(ROOT.DS.'library'.DS.$modul)) {
        while(($file = readdir($dir)) !== false) {
            if(substr($file, 0, 1) !== ".") {
                require_once(ROOT.DS.'library'.DS.$modul.DS.$file) ;
            }
        }
    }

}
